﻿using System;

class ReadIntsAndPrintSum
{
    static void Main()
    {
        int firstNumber;
        int secondNumber;
        int thirdNumber;

        Console.WriteLine("Type a number:");
        bool isFirstNumberValid = int.TryParse(Console.ReadLine(), out firstNumber);
        bool isSecondNumberValid = int.TryParse(Console.ReadLine(), out secondNumber);
        bool isThirdNumberValid = int.TryParse(Console.ReadLine(), out thirdNumber);

        if (isFirstNumberValid && isSecondNumberValid && isThirdNumberValid)
        {
            int sum = firstNumber + secondNumber + thirdNumber;
            Console.WriteLine("The sum of the three nums is {0}",sum);
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}

